import Vue from 'vue'
import VueRouter from 'vue-router'
import Main from "../components/layout/Main";
import Login from "../views/Login";
import Inventory from "../views/Inventory";
import Add from "../views/Add";
import Paying from "../views/Paying";

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    name:'Main',
    component:Main
  },
  {
    path: '/login',
    name:'Login',
    component: Login
  },
  {
    path: '/inventory',
    name:'Inventory',
    component: Inventory
  },
  {
    path: '/add',
    name:'Add',
    component: Add
  },
  {
    path: '/paying',
    name:'Paying',
    component: Paying
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
